package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	input := bufio.NewScanner(os.Stdin)
	input.Split(bufio.ScanWords)
	seen := make(map[string]int)
	for input.Scan() {
		line := input.Text()
		if _, ok := seen[line]; ok {
			seen[line] += 1
		} else {
			seen[line] = 1
		}
	}

	fmt.Println(seen)
}
